Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext


~Martha Desboositheroden 14.Jan.04 01:29 PM a Web browser
Domino Designer 6.0.2 CF2 Windows 2000


I have 3 forms in a workflow database, each with at least 50 fields on them. I want to create a new field that contains the names of the fields that were changed in the last session by a user. My users are having a difficult time determining what was changed on the form, and this is #1 on their wish list.

I can capture 'befores' and 'afters' of fields using the entering and exiting events, and was going to just make a script that was called by every field to perform that action. Then it would post the name of the field that was changed into the lastupdated field.

Is there any easier/more efficient way of accomplishing this??

Here is a sample entering event that I was going to put into a script, then I just compare current value in exiting event, this works just fine, but would be difficult to implement on every field:


Sub Entering(Source As Field)
Dim workspace As New NotesUIWorkspace
Dim uidoc As NotesUIDocument
Dim currentValue, thisField, secondaryField As String

thisField = "AHUsage"
secondaryField = "AHClass"

Set uidoc = workspace.CurrentDocument
currentValue = uidoc.fieldgettext(thisField)
If currentValue <> "" Then
Call uidoc.FieldSetText("tempValue", currentValue)
Else
Call uidoc.FieldClear("tempValue")
End If
'Set the tempLocation to the secondary field - done to execute the exiting event in this field if document is saved without moving off of this field.
Call uidoc.FieldSetText("tempLocation",secondaryField)
End Sub






Last Updated Field on a Form (~Martha Desboos... 14.Jan.04)
. . RE: Last Updated Field on a Form (~Xagra Lopveluz... 14.Jan.04)
. . . . RE: Last Updated Field on a Form (~Martha Desboos... 14.Jan.04)
. . . . Or (if you have multi-value fields ... (~Dan Elhipister... 14.Jan.04)





  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

 RSS feedsRSS
All forum posts RSS
All main topics RSS